package com.ldp.designpatterns.review.create.builder;

import com.ldp.designpatterns.review.create.builder.concreteBuilder.SmallHouse;
import com.ldp.designpatterns.review.create.builder.builder.HouseBuilder;
import com.ldp.designpatterns.review.create.builder.director.HouseDirector;
import com.ldp.designpatterns.review.create.builder.product.House;

/**
 * @ClassName BuilderTest
 * @Description TODO
 * @Author lindipei
 * @Date 2023/10/20 14:30
 */
public class BuilderTest {

    public static void main(String[] args) {
        HouseBuilder smallHouse = new SmallHouse();
        HouseDirector director1 = new HouseDirector(smallHouse);
        House house = director1.getHouse();
        System.out.println("Concrete House: " + house);
    }
}
